#!/usr/bin/env python
# _*_coding:utf-8_*_

"""
@Time :    2019/9/23 15:41
@Author:  ThinHeader
@File: serializers.py
@Software: PyCharm
"""
from rest_framework import serializers

from shop.models import ShopInfo


class ShopInfoSerializer(serializers.ModelSerializer):
    """
    微砍价序列化类
    """

    class Meta:
        model = ShopInfo
        fields = (
        'id', 'title', 'images', 'phone', 'desc', 'status', 'address', 'province_address', 'city_address', 'country_address',
        'logo')
        read_only_fields = ('id',)
